// 使用Mock
//const Mock = require('mockjs')

import Mock from 'mockjs'
Mock.setup({
  timeout: '500-1000', // 随机500-1000ms延迟
})
// 用户信息
const users = [
  {
    id: 1,
    username: 'student',
    password: '123456',
    photo:
      'https://cn.bing.com/images/search?view=detailV2&ccid=SWWmUtJk&id=1AA5B6CAAEBF49EBDD4E749F8A2401CF0DD29B36&thid=OIP.SWWmUtJk_k7PS8U6DyrxQQAAAA&mediaurl=https%3a%2f%2fc-ssl.dtstatic.com%2fuploads%2fblog%2f202304%2f29%2f20230429194620_cd903.thumb.400_0.jpg&exph=390&expw=400&q=%e5%a4%b4%e5%83%8f&FORM=IRPRST&ck=706073E9B46AD2377A127E1EAC17C198&selectedIndex=0&itb=0&idpp=overlayview&ajaxhist=0&ajaxserp=0',
    token: 'student-token',
    role: 'student',
    rights: [],
  },
]
//获取用户信息
Mock.mock('/userinfo', 'get', () => {
  return users
})
